<?php
namespace App\Controllers;

use System\Core\Controller;

class HomeController extends Controller {
    public function index() {
        return $this->view('home/index', [
            'title' => 'Welcome to MVC with Smarty',
            'users' => [
                ['name' => 'John Doe', 'email' => 'john@example.com'],
                ['name' => 'Jane Doe', 'email' => 'jane@example.com'],
                ['name' => 'Bob Smith', 'email' => 'bob@example.com'],
                ['name' => 'Alice Johnson', 'email' => 'alice@example.com'],
            ],
            'features' => [
                'Easy to learn',
                'Powerful templating',
                'MVC structure',
                'Customizable'
            ]
        ]);
    }
    
    public function about() {
        return $this->view('home/about', [
            'title' => 'About Us',
            'company' => 'Smarty MVC Framework'
        ]);
    }
}